import request from '@/utils/request';

export function addCampusResource(resource) {
    return request.post('/resources/add', resource);
}

export function deleteCampusResource(resourceId) {
    return request.delete(`/resources/delete/${resourceId}`);
}

export function updateCampusResource(resource) {
    return request.put('/resources/update', resource);
}

export function getAllCampusResources() {
    return request.get('/resources/all');
}
